import { IsInt, IsOptional, IsString } from 'class-validator';

export class CreateCatDto {
  @IsString()
  readonly name: string;

  @IsInt()
  readonly age: number;

  @IsString()
  readonly breed: string;
}

export class ChatDiaryDto {
  @IsString()
  readonly diaryId: string;

  @IsString()
  readonly diary: string;

  @IsString()
  readonly content: string;
}

export class ChatDiaryAfterDto {
  @IsString()
  readonly diaryId: string;

  @IsString()
  readonly diary: string;
}

export class DiaryPolishDto {
  @IsString()
  readonly diaryId: string;

  @IsString()
  readonly diary: string;

  @IsString()
  @IsOptional()
  readonly latitude?: string;

  @IsString()
  @IsOptional()
  readonly longitude?: string;
}

